<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IFWiki.Models.Article>" %>
<%@ Import Namespace="IFWiki.Utils"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>IF Wiki: <%= Html.Encode(Model.Name) %></title>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="menu" runat="server">
            
        <div id="menucontainer">
            <ul id="menu">      
                <li><a class="current">Main</a></li>
                <li><%= Html.ActionLink("Source", "ViewSource", "Article", new { name = Model.Name, innerType = Model.InnerType }, null)%></li>
<%    
    if (Html.ViewData.Model.IsDiscussion)  
    {
%>
                <li><%= Html.ActionLink("UnTalk", "UnTalk", "Article", new { name = Model.Name }, null)%></li>
<%
    }
    else
    {
%> 
                <li><%= Html.ActionLink("Talk", "Talk", "Article", new { name = Model.Name, innerType = Model.InnerType }, null)%></li>
<%
    }
%>
            </ul>
        </div>
    </div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%= Html.Encode(Model.Name) %></h2>
    <%= Html.Encode(Model.Detail).ToHtml() %>
    
</asp:Content>

